package pl.makimo.ksr.gui;

import pl.makimo.data.WeatherRecord;
import pl.makimo.fuzzy.sets.FuzzySet;
import pl.makimo.fuzzy.sets.Type2DiscreteFuzzySet;

public class DiscreteType2FuzzySetCreator extends FuzzySetCreator {
	public DiscreteType2FuzzySetCreator() {
		super();
		parametersPane.add(createFunctionMembershipButton(Type2TriangularIntervalMembershipFunctionCreator.class, "Triangular (I) Interval (II) Function"));
		parametersPane.add(createFunctionMembershipButton(Type2TriangularGaussianMembershipFunctionCreator.class, "Triangular (I) Gaussian (II) Function"));
	}

	@Override
	public FuzzySet<WeatherRecord> getFuzzySet() {
		return new Type2DiscreteFuzzySet<WeatherRecord>(this.membershipFunction);
	}
}
